﻿<?xml version="1.0" encoding="utf-8"?>
<deploymentModel>
  <!-- Begin : Define users and groups for this application -->
  <usersAndGroups>
    <usersAndGroup name="DeploymentTo" description="Contacts to inform for managed actions" type="mail">
      <add value="toto@test.fr" environment="DEV" />
      <add value="toto@test.fr" environment="UAT" />
      <add value="toto@test.fr" environment="PRD" />
    </usersAndGroup>
    <usersAndGroup name="DeploymentCc" description="Contacts to inform for managed actions" type="mail">
      <add value="titi@test.fr" environment="DEV" />
      <add value="titi@test.fr" environment="UAT" />
      <add value="titi@test.fr" environment="PRD" />
    </usersAndGroup>
    <usersAndGroup name="serviceAccountForSIAExecution" description="Accound used to execute the SIA Windows service" type="user">
      <add value="Domain\DevUser" environment="DEV" />
      <add value="Domain\UatUser" environment="UAT" />
      <add value="Domain\PrdUser" environment="PRD" />
    </usersAndGroup>
    <usersAndGroup name="GroupPlatformAdministrators" description="Group which contains Business Objects Administrators" type="group">
      <add value="Domain\GRP_BOE_Administrators" environment="DEV">
        <user value="Domain\user1" />
        <user value="Domain\user2" />
      </add>
      <add value="Domain\GRP_BOE_Administrators" environment="UAT">
        <user value="Domain\user1" />
        <user value="Domain\user2" />
      </add>
      <add value="Domain\GRP_BOE_Administrators" environment="PRD">
        <user value="Domain\user1" />
        <user value="Domain\user2" />
      </add>
    </usersAndGroup>
    <usersAndGroup name="GroupForPlatformManagement" description="Group which contains users and groups allowed to interact with the platform" type="group">
      <add value="Domain\GRP_MGT_BOE_DEV" environment="DEV">
        <user value="serviceAccountForSIAExecution" />
        <group value="GroupPlatformAdministrators" />
      </add>
      <add value="Domain\GRP_MGT_BOE_UAT" environment="UAT">
        <user value="serviceAccountForSIAExecution" />
        <group value="GroupPlatformAdministrators" />
      </add>
      <add value="Domain\GRP_MGT_BOE_PRD" environment="PRD">
        <user value="serviceAccountForSIAExecution" />
        <group value="GroupPlatformAdministrators" />
      </add>
    </usersAndGroup>
    <usersAndGroup name="applicationPoolUserForApp1" description="Accound used to the application pool for App1" type="user">
      <add value="Domain\AppPoolUserApp1Dev" password="pwdApp1Dev" environment="DEV" />
      <add value="Domain\AppPoolUserApp1Uat" password="pwdApp1Uat" environment="UAT" />
      <add value="Domain\AppPoolUserApp1Prd" password="pwdApp1Prd" environment="PRD" />
    </usersAndGroup>
    <usersAndGroup name="applicationPoolUserForApp2" description="Accound used to the application pool for App2" type="user">
      <add value="Domain\AppPoolUserApp2Dev" password="pwdApp2Dev" environment="DEV" />
      <add value="Domain\AppPoolUserApp2Uat" password="pwdApp2Uat" environment="UAT" />
      <add value="Domain\AppPoolUserApp2Prd" password="pwdApp2Prd" environment="PRD" />
    </usersAndGroup>    
  </usersAndGroups>
  <templates>
    <template name="deploymentConfiguration" type="configuration">
      <configuration>
        <logger outputFolder="d:\temp" archivingFolder="d:\temp\Target" />
        <mailing smtpserver="smtp.yahoo.fr">
          <to value="DeploymentTo" />
          <cc value="DeploymentCc" />
        </mailing>
      </configuration>
    </template>
    <template name="securityRootFolders" type="security">
      <security>
        <add name="GroupForPlatformManagement" rights="FullControl" />
      </security>
    </template>
    <template name="securitySharedViewersFolders" type="security">
      <security>
        <add name="GroupForPlatformManagement" rights="FullControl" />
        <add name="GroupForPlatformViewers" rights="ReadOnly" />
      </security>
    </template>
    <template name="rootFolder" type="folders">
      <folders>
        <folder name="logFolder" value="D:\Logs" allowCreation="false" inheritSecurity="false" type="server">
          <security template="securitySharedViewersFolders" />
        </folder>
        <folder name="tempFolder" value="D:\Temp" allowCreation="false" inheritSecurity="false" type="server">
          <security template="securitySharedViewersFolders" />
        </folder>
        <folder name="toolsFolder" value="D:\Tools" allowCreation="false" inheritSecurity="false" type="server">
          <security template="securityRootFolders" />
        </folder>
        <folder name="sourcesFolder" value="D:\sources" share="Sources" allowCreation="false" inheritSecurity="false" type="server">
          <security template="securityRootFolders" />
        </folder>
        <folder name="backupFolder" value="D:\backup" share="backup" allowCreation="false" inheritSecurity="false" type="application">
          <security template="securityRootFolders" />
        </folder>
        <folder name="workdirFolder" value="D:\sources\Delivery\Workdir" share="Sources\Delivery\Workdir" allowCreation="false" inheritSecurity="false" type="application">
          <security template="securitySharedViewersFolders" />
        </folder>
        <folder name="deliveryFolder" value="D:\sources\Delivery\Workdir" share="Sources\Delivery\Workdir" allowCreation="false" inheritSecurity="false" type="application">
          <security template="securityRootFolders" />
        </folder>
        <folder name="logApplicationFolder" value="D:\Logs\AppLogs" share="AppLogs" type="application">
          <security template="securitySharedViewersFolders" />
        </folder>
        <folder name="SourceControlFolder" value="D:\sources\svn" allowCreation="false" inheritSecurity="false" type="server">
          <security template="securityRootFolders" />
        </folder>
        <folder name="DatabaseDriversInstallationFolder" value="D:\DatabaseDriversInstallation" allowCreation="false" inheritSecurity="false" type="server">
          <security template="securityRootFolders" />
        </folder>
      </folders>
    </template>
    <template name="BOEWebService" type="applicationPool">
      <applicationPool deploymentTemplateName="BOEWebService.zip" runtime="32 bits">
        <security>
          <add name="applicationPoolUserForBOEWebService" />
        </security>
      </applicationPool>
    </template>
    <template name="IISMiddleware" type="middleware">
      <middleware type="IIS7">
        <applicationPools>
          <applicationPool applicationPoolName="BOEWebService" template="ApplicationPoolForApp1" deploymentTemplateName="myAppPool11.xml" />
        </applicationPools>
        <executionContainer name="BOEWebService">
          <folders>
            <folder name="rootFolder" value="d:\IISContainer\BOEWebService" />
            <folder name="iislogFolder" value="d:\logs\IIS" />
          </folders>
          <bindings>
            <binding protocol="http" ssl="true" port="81" ipListener="IP_1" />
          </bindings>
        </executionContainer>
      </middleware>
    </template>
    <template name="ApacheMiddleware" type="middleware">
      <executionContainer name="FrontWeb">
        <folders>
          <folder name="rootFolder" value="D:\Tools\Apache2.2\htDocs" />
          <folder name="apachelogFolder" value="d:\logs\Apache" />
        </folders>
        <bindings>
          <binding protocol="http" ssl="false" port="80" ipListener="IP_1" />
        </bindings>
        <service name="Apache2.2" installationDirectory="D:\Tools\Apache2.2" executable="d:\tools\Apache2.2\bin\httpd.exe" startMode="Automatic" />
      </executionContainer>
    </template>
    <template name="TomcatMiddleware" type="middleware">
      <executionContainer name="FrontApplication">
        <folders>
          <folder name="rootFolder" value="D:\Tools\Tomcat7\WebApps" />
          <folder name="tomcat7Folder" value="d:\logs\Tomcat7" />
        </folders>
        <bindings>
          <binding protocol="http" ssl="false" port="8080" ipListener="IP_1" />
        </bindings>
        <service name="Tomcat7" installationDirectory="D:\Tools\Tomcat7" executable="d:\temp\install\bin\Tomcat7.exe" startMode="Automatic" />
      </executionContainer>
    </template>
    <template name="BusinessObjectMiddleware" type="middleware">
      <executionContainer name="BOE">
        <folders>
          <folder name="rootFolder" value="D:\BusinessObjects" />
          <folder name="BusinessObjectsFolder" value="d:\logs\BOE" />
        </folders>
        <service name="BOESIA12" installationDirectory="D:\BusinessObjects" executable="d:\BusinessObjects\BusinessObjects Enterprise 12.0\win32_x86\sia.exe" startMode="Automatic" />
        <jobServers>
          <jobServer name="cms" enabled="true" />
          <jobServer name="inputFileRepository" enabled="true" tempDirectory="d:\temp\input\temp" inputDirectory="d:\temp\input\files"  />
        </jobServers>
      </executionContainer>
    </template>
    <template name="BOEServer" type="server">
      <server os="Windows" osVersion="6.1" cluster="false" winrmUseSSL="false" winrmPort="5985">
        <folders template="rootFolder" />
        <middlewares>
          <middleware template="IISMiddleware" />
          <middleware template="ApacheMiddleware" />
          <middleware template="TomcatMiddleware" />
          <middleware template="BusinessObjectMiddleware" />
        </middlewares>
      </server>
    </template>
  </templates>
  <servers>
    <server name="localhost" template="BOEServer" zone="Public">
      <ipAddresses>
        <ipAddress name="IP_1" value="127.0.0.1" />
      </ipAddresses>
    </server>
  </servers>
  <applications>
    <application name="BOE_Platform" version="1.0" friendlyName="Business Objects XI 3.1 platform">
      <components>
        <!-- Management Tools -->
        <component name="Tools" componentName="Tools" version="1.0" componentType="Files" packageName="Management.BOE.Tools">
          <relativeAttributes>
            <installationDirectory relativeValue="BOE.Management" targetedName="toolsFolder" targetedType="folder" targetedAttribute="value" separator="\" parent="server" />
          </relativeAttributes>
        </component>
      </components>        
    </application>
  </applications>
  <deploymentTargets>
    <!-- Begin : BOE PLatform deployment Model for DEV Environment -->
    <deploymentTarget environment="DEV" applicationName="BOE_Platform" version="1.0">
      <configuration template="deploymentConfiguration" />
      <deploymentNode nodeName="srvboedev01" serverName="localhost">
        <component name="Tools" />
      </deploymentNode>
    </deploymentTarget>
    <!-- End : BOE PLatform deployment Model for DEV Environment -->
  </deploymentTargets>
</deploymentModel>
